<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>MMTTheoremSet</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="MMTTheoremSet";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../mmj/tl/MMTTheoremFile.html" title="class in mmj.tl"><span class="strong">Prev Class</span></a></li>
<li><a href="../../mmj/tl/StoreInLogSysAndMMTFolderTLRequest.html" title="class in mmj.tl"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?mmj/tl/MMTTheoremSet.html" target="_top">Frames</a></li>
<li><a href="MMTTheoremSet.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">mmj.tl</div>
<h2 title="Class MMTTheoremSet" class="title">Class MMTTheoremSet</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>mmj.tl.MMTTheoremSet</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.lang.Iterable&lt;<a href="../../mmj/tl/TheoremStmtGroup.html" title="class in mmj.tl">TheoremStmtGroup</a>&gt;</dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">MMTTheoremSet</span>
extends java.lang.Object
implements java.lang.Iterable&lt;<a href="../../mmj/tl/TheoremStmtGroup.html" title="class in mmj.tl">TheoremStmtGroup</a>&gt;</pre>
<div class="block">MMTTheoremSet represents a set of MMTTheoremStmtGroup objects to be loaded
 into the Logical System.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../mmj/tl/MMTTheoremSet.html#MMTTheoremSet(java.io.File[], mmj.lang.LogicalSystem, mmj.lang.Messages, mmj.tl.TlPreferences)">MMTTheoremSet</a></strong>(java.io.File[]&nbsp;fileArray,
             <a href="../../mmj/lang/LogicalSystem.html" title="class in mmj.lang">LogicalSystem</a>&nbsp;logicalSystem,
             <a href="../../mmj/lang/Messages.html" title="class in mmj.lang">Messages</a>&nbsp;messages,
             <a href="../../mmj/tl/TlPreferences.html" title="class in mmj.tl">TlPreferences</a>&nbsp;tlPreferences)</code>
<div class="block">Constructs the MMTTheoremSet using an array of Files, which may be
 obtained from the MMTFolder.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../mmj/tl/MMTTheoremSet.html#MMTTheoremSet(mmj.tl.MMTTheoremFile, mmj.lang.LogicalSystem, mmj.lang.Messages, mmj.tl.TlPreferences)">MMTTheoremSet</a></strong>(<a href="../../mmj/tl/MMTTheoremFile.html" title="class in mmj.tl">MMTTheoremFile</a>&nbsp;mmtTheoremFile,
             <a href="../../mmj/lang/LogicalSystem.html" title="class in mmj.lang">LogicalSystem</a>&nbsp;logicalSystem,
             <a href="../../mmj/lang/Messages.html" title="class in mmj.lang">Messages</a>&nbsp;messages,
             <a href="../../mmj/tl/TlPreferences.html" title="class in mmj.tl">TlPreferences</a>&nbsp;tlPreferences)</code>
<div class="block">Constructs the MMTTheoremSet using a single input MMTTheoremFile.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.util.List&lt;<a href="../../mmj/lang/Theorem.html" title="class in mmj.lang">Theorem</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../mmj/tl/MMTTheoremSet.html#buildSortedAssrtListOfAdds(java.util.Comparator)">buildSortedAssrtListOfAdds</a></strong>(java.util.Comparator&lt;? super <a href="../../mmj/lang/Theorem.html" title="class in mmj.lang">Theorem</a>&gt;&nbsp;comparator)</code>
<div class="block">Returns a List of Theorems in the MMTTheoremSet which were added to the
 LogicalSystem during the load process.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.util.List&lt;<a href="../../mmj/tl/TheoremStmtGroup.html" title="class in mmj.tl">TheoremStmtGroup</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../mmj/tl/MMTTheoremSet.html#buildSortedListOfAdds(java.util.Comparator)">buildSortedListOfAdds</a></strong>(java.util.Comparator&lt;? super <a href="../../mmj/tl/TheoremStmtGroup.html" title="class in mmj.tl">TheoremStmtGroup</a>&gt;&nbsp;comparator)</code>
<div class="block">Returns a List of the TheoremStmtGroups in the MMTTheoremSet which were
 added to the LogicalSystem during the load process.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.util.Iterator&lt;<a href="../../mmj/tl/TheoremStmtGroup.html" title="class in mmj.tl">TheoremStmtGroup</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../mmj/tl/MMTTheoremSet.html#iterator()">iterator</a></strong>()</code>
<div class="block">Returns an Iterator over TheoremStmtGroup objects contained in the
 MMTTheoremSet theoremStmtGroupTbl.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../mmj/tl/MMTTheoremSet.html#updateLogicalSystem()">updateLogicalSystem</a></strong>()</code>
<div class="block">Updates the LogicalSystem using the contents of the MMTTheoremSet.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="MMTTheoremSet(java.io.File[], mmj.lang.LogicalSystem, mmj.lang.Messages, mmj.tl.TlPreferences)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MMTTheoremSet</h4>
<pre>public&nbsp;MMTTheoremSet(java.io.File[]&nbsp;fileArray,
             <a href="../../mmj/lang/LogicalSystem.html" title="class in mmj.lang">LogicalSystem</a>&nbsp;logicalSystem,
             <a href="../../mmj/lang/Messages.html" title="class in mmj.lang">Messages</a>&nbsp;messages,
             <a href="../../mmj/tl/TlPreferences.html" title="class in mmj.tl">TlPreferences</a>&nbsp;tlPreferences)
              throws <a href="../../mmj/lang/TheoremLoaderException.html" title="class in mmj.lang">TheoremLoaderException</a></pre>
<div class="block">Constructs the MMTTheoremSet using an array of Files, which may be
 obtained from the MMTFolder.
 <p>
 Validation of the input theorems is performed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fileArray</code> - array of Files designating MMTTheoremFiles to be loaded
            into the MMTTheoremSet.</dd><dd><code>logicalSystem</code> - LogicalSystem object.</dd><dd><code>messages</code> - Messages object.</dd><dd><code>tlPreferences</code> - TlPreferences object.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../mmj/lang/TheoremLoaderException.html" title="class in mmj.lang">TheoremLoaderException</a></code> - if there are any errors reading the input
             files or if there are validation errors.</dd></dl>
</li>
</ul>
<a name="MMTTheoremSet(mmj.tl.MMTTheoremFile, mmj.lang.LogicalSystem, mmj.lang.Messages, mmj.tl.TlPreferences)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>MMTTheoremSet</h4>
<pre>public&nbsp;MMTTheoremSet(<a href="../../mmj/tl/MMTTheoremFile.html" title="class in mmj.tl">MMTTheoremFile</a>&nbsp;mmtTheoremFile,
             <a href="../../mmj/lang/LogicalSystem.html" title="class in mmj.lang">LogicalSystem</a>&nbsp;logicalSystem,
             <a href="../../mmj/lang/Messages.html" title="class in mmj.lang">Messages</a>&nbsp;messages,
             <a href="../../mmj/tl/TlPreferences.html" title="class in mmj.tl">TlPreferences</a>&nbsp;tlPreferences)
              throws <a href="../../mmj/lang/TheoremLoaderException.html" title="class in mmj.lang">TheoremLoaderException</a></pre>
<div class="block">Constructs the MMTTheoremSet using a single input MMTTheoremFile.
 <p>
 Validation of the input theorem is performed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mmtTheoremFile</code> - MMTTheoremFile to be loaded into the MMTTheoremSet.</dd><dd><code>logicalSystem</code> - LogicalSystem object.</dd><dd><code>messages</code> - Messages object.</dd><dd><code>tlPreferences</code> - TlPreferences object.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../mmj/lang/TheoremLoaderException.html" title="class in mmj.lang">TheoremLoaderException</a></code> - if there are any errors reading the input
             files or if there are validation errors.</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="buildSortedListOfAdds(java.util.Comparator)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>buildSortedListOfAdds</h4>
<pre>public&nbsp;java.util.List&lt;<a href="../../mmj/tl/TheoremStmtGroup.html" title="class in mmj.tl">TheoremStmtGroup</a>&gt;&nbsp;buildSortedListOfAdds(java.util.Comparator&lt;? super <a href="../../mmj/tl/TheoremStmtGroup.html" title="class in mmj.tl">TheoremStmtGroup</a>&gt;&nbsp;comparator)</pre>
<div class="block">Returns a List of the TheoremStmtGroups in the MMTTheoremSet which were
 added to the LogicalSystem during the load process.
 <p>
 Note: this method is called by mmj.lang.BookManager.java during
 "commit()" processing at the end of the TheoremLoader load process.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>comparator</code> - Comparator for TheoremStmtGroup.</dd>
<dt><span class="strong">Returns:</span></dt><dd>List of added TheoremStmtGroup objects sorted using the input
         Comparator.</dd></dl>
</li>
</ul>
<a name="buildSortedAssrtListOfAdds(java.util.Comparator)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>buildSortedAssrtListOfAdds</h4>
<pre>public&nbsp;java.util.List&lt;<a href="../../mmj/lang/Theorem.html" title="class in mmj.lang">Theorem</a>&gt;&nbsp;buildSortedAssrtListOfAdds(java.util.Comparator&lt;? super <a href="../../mmj/lang/Theorem.html" title="class in mmj.lang">Theorem</a>&gt;&nbsp;comparator)</pre>
<div class="block">Returns a List of Theorems in the MMTTheoremSet which were added to the
 LogicalSystem during the load process.
 <p>
 Note: this method is called by mmj.pa.ProofAsst.java during "commit()"
 processing at the end of the TheoremLoader load process.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>comparator</code> - Comparator for mmj.lang.Assrt.</dd>
<dt><span class="strong">Returns:</span></dt><dd>List of added Theorem objects sorted using the input Comparator.</dd></dl>
</li>
</ul>
<a name="iterator()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>iterator</h4>
<pre>public&nbsp;java.util.Iterator&lt;<a href="../../mmj/tl/TheoremStmtGroup.html" title="class in mmj.tl">TheoremStmtGroup</a>&gt;&nbsp;iterator()</pre>
<div class="block">Returns an Iterator over TheoremStmtGroup objects contained in the
 MMTTheoremSet theoremStmtGroupTbl.
 <p>
 Note: this is used in LogicalSystem and SeqAssigner during rollback()
 processing (fyi).</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>iterator</code>&nbsp;in interface&nbsp;<code>java.lang.Iterable&lt;<a href="../../mmj/tl/TheoremStmtGroup.html" title="class in mmj.tl">TheoremStmtGroup</a>&gt;</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>Iterator over TheoremStmtGroup objects contained in the
         MMTTheoremSet theoremStmtGroupTbl.</dd></dl>
</li>
</ul>
<a name="updateLogicalSystem()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>updateLogicalSystem</h4>
<pre>public&nbsp;void&nbsp;updateLogicalSystem()
                         throws <a href="../../mmj/lang/TheoremLoaderException.html" title="class in mmj.lang">TheoremLoaderException</a></pre>
<div class="block">Updates the LogicalSystem using the contents of the MMTTheoremSet.
 <p>
 If errors are encountered during the update,
 logicalSystem.theoremLoaderRollback() is called to reverse any previous
 updates.
 <p>
 Likewise, if no errors are encountered during the update,
 logicalSystem.theoremLoaderCommit() is called to finalize the updates.
 <p>
 FYI, this is called by TheoremLoader.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../mmj/lang/TheoremLoaderException.html" title="class in mmj.lang">TheoremLoaderException</a></code> - if any errors are encountered during the
             update process.</dd>
<dd><code>java.lang.IllegalArgumentException</code> - if either rollback or commit of the
             updates fail.</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../mmj/tl/MMTTheoremFile.html" title="class in mmj.tl"><span class="strong">Prev Class</span></a></li>
<li><a href="../../mmj/tl/StoreInLogSysAndMMTFolderTLRequest.html" title="class in mmj.tl"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?mmj/tl/MMTTheoremSet.html" target="_top">Frames</a></li>
<li><a href="MMTTheoremSet.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
